# -*- encoding:utf-8 -*-
# @Time : 2025/3/12 14:28
# @Author : xunter
# @Email : 3133739348@qq.com
# @File : urls.py
# @Software : PyCharm
from django.urls import path
from rest_framework import routers

from users.views import ImageVerifyView, UserViewSet, MyTokenObtainPairViewSet, AreaViewSet, AddressViewSet

urlpatterns = [
    path('verification/<str:func>/<uuid:uuid>/',ImageVerifyView.as_view()),
    path('login/',MyTokenObtainPairViewSet.as_view())
]

router = routers.DefaultRouter()
router.register('users',UserViewSet)
router.register('area',AreaViewSet)
router.register('address',AddressViewSet)
urlpatterns += router.urls
